package com.bruce.demo1.principles.demo2.lsp.demo2;

/**
 * @PROJECT_NAME design_patterns
 * @DESCRIPTION 正方形类
 * @AUTHOR CNBruceLee
 * @DATE 2021/6/20 14:24
 */
public class Square implements Quadrilateral {
    private double side;

    public double getSide() {
        return side;
    }

    public void setSide(double side) {
        this.side = side;
    }

    public double getLength() {
        return this.getSide();
    }

    public double getWidth() {
        return this.getSide();
    }
}
